import javax.management.ObjectNameimport sun.tools.jconsole.LocalVirtualMachineimport java.rmi.registry.LocateRegistryimport javax.management.remote.JMXConnectorFactoryimport javax.management.MBeanServerConnectionimport javax.management.remote.JMXConnectorimport javax.management.remote.JMXConnectorServerFactoryimport javax.management.remote.JMXConnectorServerimport javax.management.remote.JMXServiceURLimport java.lang.management.ManagementFactoryimport org.apache.log4j.Loggerimport org.apache.log4j.PropertyConfiguratorimport java.net.URL
import java.io.File
private void waitForEnterPressed(){	println "\nPress <Enter> to continue..."	System.in.read()}///
//def f = ["commands/xml/Windows.xml"] as File
//println f.absolutePath
//def u = f.toURI().toURL()
//println u.path

///
//def m = [:]
//m.put("key", 1)
//println m.get("key")
//
//def x=0l
//def y=1000l-m.get("key")
//println y
//
//m+=["otherKey":2]
//println m["otherKey"]

///
//PropertyConfigurator.configure("config/properties/log4j.properties")
//Logger.getLogger(this.getClass()).error("*******************************************Log4J Test")/////def m = [:]//def key="objectKey"//m[key]="newValue"//println m[key]//println m.containsKey("objectKey")/////def reg = LocateRegistry.createRegistry(9999)////def mbs = ManagementFactory.getPlatformMBeanServer()////JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9999/server") //JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs) //cs.start()////println reg.list().join(",")////JMXConnector jmxc = JMXConnectorFactory.connect(url, null) //MBeanServerConnection mbsc = jmxc.getMBeanServerConnection()////waitForEnterPressed()//cs.stop()//def pattern = ".*test.*"//def allVms = LocalVirtualMachine.allVirtualMachines.values()//def lvm = allVms.find({//	if (it.toString() ==~ pattern)//	{//		return it//	}//})//if(!lvm.manageable)//{//    lvm.startManagementAgent()//    if(!lvm.manageable)//        throw new IOException("$lvm not manageable")//}//def jmxUrl = new JMXServiceURL(lvm.connectorAddress())//def JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl)//def jmxMbsc = jmxc.getMBeanServerConnection()//def threadAttr = jmxMbsc.getAttribute(new ObjectName(ManagementFactory.THREAD_MXBEAN_NAME), "ThreadCount")//println threadAttr//jmxc.close()def list=[]list<<6list<<8list.each(	{		println it	})waitForEnterPressed()